-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modify AdvancedTreeSearch for CtcTreeBuilder support #102
base: master
Are you sure you want to change the base?
Conversation
# Conflicts: # src/Search/AdvancedTreeSearch/PersistentStateTree.cc # src/Search/AdvancedTreeSearch/TreeBuilder.cc
# Conflicts: # src/Search/TreeBuilder.hh
# Conflicts: # src/Search/AdvancedTreeSearch/AcousticLookAhead.hh # src/Search/AdvancedTreeSearch/LanguageModelLookahead.hh # src/Search/AdvancedTreeSearch/LinearPrediction.hh # src/Search/AdvancedTreeSearch/SearchSpace.cc # src/Search/AdvancedTreeSearch/SearchSpace.hh # src/Search/Module.cc # src/Search/Module.hh # src/Search/PersistentStateTree.cc # src/Search/TreeBuilder.cc # src/Search/TreeBuilder.hh # src/Search/TreeStructure.hh
The
For both configurations, the TDP for skip has to be set to infinity. |
Maybe you have a better idea for naming the config parameter "force-blank-between-identical-labels"... |
# Conflicts: # src/Search/TreeBuilder.cc # src/Search/TreeBuilder.hh
@Stefanwuu Once you can confirm that these changes work for you too we can merge. I'll set my review to request changes for this purpose only for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for confirmation that these changes are sufficient to run CTC decoding.
Just minor adjustments to make the
AdvancedTreeSearch
work with theCtcTreeBuilder
:Modified two if-statements related to the
stateDepths
which caused segmentation faults due to the self-loops in the CTC tree.Two assertions didn’t apply to the CTC tree, as its root state logic is significantly simpler. These assertions are now only checked if the
CtcTreeBuilder
is not used, so the previous behavior remains unchanged.